package s04;

/**
 * @ClassName CookDemo
 * @Description TODO
 * @Author Li
 * @Date 2022/8/9 16:21
 * @ModifyDate 2022/8/9 16:21
 * @Version 1.0
 */
public class CookDemo {
    public static void main(String[] args) {
        invokeCook(() -> {
            System.out.println("做饭！");
        });
    }

    public static void invokeCook(Cook cook) {
        cook.makeFood();
    }
}
